package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.common.Result;
import com.iflytek.dto.GoodsDTO;
import com.iflytek.dto.PageDTO;
import com.iflytek.model.Goods;
import com.iflytek.vo.GoodsVO;
import com.iflytek.vo.PageVO;

import java.util.List;

/**
 * <p>
 * 商品 服务类
 * </p>
 *
 * @author h_t
 * @since 2023-09-23
 */
public interface GoodsService extends IService<Goods>   {

    Result<List<GoodsVO>> goodsRecommend();

    Result<List<GoodsVO>> goodsSales();

    Result<List<GoodsVO>> findAll();

    Result<PageVO<GoodsVO>> findByCategory(PageDTO pageDTO, String categoryId);

    Result<List<GoodsVO>> goodsNews();

    Result<PageVO<GoodsVO>> goodsPage(PageDTO pageDTO);

    Result<Boolean> deleteId(Long id);

    Result<GoodsVO> getGoodsId(Long id);

    Result<Boolean> updateGoods(GoodsDTO goodsDTO);

    Result<Boolean> saveGoods(GoodsDTO goodsDTO);
}